package com.corpcredit.webapp.action;

import java.io.Serializable;
import java.util.List;

import com.corpcredit.webapp.action.BasePage;
import com.corpcredit.model.DwtzQtqk;
import com.corpcredit.model.Jbqk;
import com.corpcredit.service.GenericManager;
import com.corpcredit.service.LookupManager;

public class DwtzQtqkList extends BasePage implements Serializable {
    private GenericManager<DwtzQtqk, Long> dwtzQtqkManager;
    private LookupManager lookupManager;
    private Jbqk jbqk;

    public void setDwtzQtqkManager(GenericManager<DwtzQtqk, Long> dwtzQtqkManager) {
        this.dwtzQtqkManager = dwtzQtqkManager;
    }

    public void setJbqk(Jbqk jbqk)
    {
    	this.jbqk=jbqk;
    }
    public void setLookupManager(LookupManager look)
    {
    	this.lookupManager=look;
    }
    public DwtzQtqkList() {
        setSortColumn("id"); // sets the default sort column
    }

    public List getDwtzQtqks() {
    	
    	return sort(lookupManager.findAllByJbqkID(DwtzQtqk.class, jbqk.getId()));
//        return sort(dwtzQtqkManager.getAll());
    }
}

